<% var navs = [{
      name: 'index',
      text: '首页',
      link: 'index'
    }, {
      name: 'about',
      text: '关于我们',
      link: 'about'
    }, {
      name: 'material',
      text: '选材工艺',
      link: 'material'
    }, {
      name: 'case',
      text: '定制案例',
      link: 'list_case_cate'
    }, {
      name: 'custom',
      text: '定制流程',
      link: 'custom'
    }, {
      name: 'contact',
      text: '展厅店面',
      link: 'contact'
    }]
%>
<div class="g-nav">
  {{each navs}}
  {{if $index !== 0}}<span>|</span>{{/if}}
  <a {{if active == $value.name}}class="focus"{{/if}} href="/@/{{$value.link}}.html">{{$value.text}}</a>
  {{/each}}
</div>